<?xml version="1.0" encoding="UTF-8"?>
<!--
*************************************************************************
* The contents of this file are subject to the Openbravo  Public  License
* Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
* Version 1.1  with a permitted attribution clause; you may not  use this
* file except in compliance with the License. You  may  obtain  a copy of
* the License at http://www.openbravo.com/legal/license.html 
* Software distributed under the License  is  distributed  on  an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific  language  governing  rights  and  limitations
* under the License. 
* The Original Code is Openbravo ERP. 
* The Initial Developer of the Original Code is Openbravo SL 
* All portions are Copyright (C) 2001-2006 Openbravo SL 
* All Rights Reserved. 
* Contributor(s):  ______________________________________.
************************************************************************
-->
<REPORT>
  <template file="ReportCashflowForecast.html"/>
  <PARAMETER id="paramToolBar" name="toolbar" default=""/>
  <PARAMETER id="paramC_BANKACCOUNT_ID" name="cBankAccount" default=""/>
  <PARAMETER id="paramDateFrom" name="dateFrom" attribute="value" default=""/>
	<PARAMETER id="paramDateFrom" name="dateFromdisplayFormat" attribute="displayformat" replace="xx"/>
	<PARAMETER id="paramDateFrom" name="dateFromsaveFormat" attribute="saveformat" replace="yy"/>
  <PARAMETER id="fieldFinalDate" name="finalDate"/>
  <PARAMETER id="fieldDate" name="date"/>
  <PARAMETER id="fieldSysdate" name="date1"/>

  <PARAMETER id="parameterBreakDate" name="pdate" default="1"/>
  <PARAMETER id="breakDate" name="breakDate" boolean="checked" withId="parameterBreakDate" default="1"/>

  <PARAMETER id="param0" name="Param0" default="0"/>
  <PARAMETER id="paramCSS" name="theme" attribute="href" replace="Default"/>
  <PARAMETER id="tdleftTabs" name="leftTabs" default=""/>
  <PARAMETER id="paramParentTabContainer" name="parentTabContainer" default=" "/>
  <PARAMETER id="paramMainTabContainer" name="mainTabContainer" default=" "/>
  <PARAMETER id="paramChildTabContainer" name="childTabContainer" default=" "/>
  <PARAMETER id="tdtopButtons" name="navigationBar" default=""/>
  <PARAMETER id="keyMap" name="keyMap" default=""/>
  <PARAMETER id="messageBoxID" name="messageType" attribute="class" replace="yy" default="HIDDEN"/>
  <PARAMETER id="messageBoxIDTitle" name="messageTitle" default=""/>
  <PARAMETER id="messageBoxIDMessage" name="messageMessage" default=""/>


  <structure name="structure1">
    <SUBREPORT id="reportC_ACCOUNTNUMBER" name="reportC_ACCOUNTNUMBER" report="org/openbravo/erpCommon/reference/List">
      <ARGUMENT name="parameterListSelected" withId="paramC_BANKACCOUNT_ID"/>
    </SUBREPORT>
  </structure>

  <structure name="structureSummary">
    <FIELD id="fieldAcctSumary">bankaccount</FIELD>
    <FIELD id="fieldBalanceSumary">initialbalance</FIELD>
    <FIELD id="fieldIncomeSummary">income</FIELD>
    <FIELD id="fieldPaymentSummary">payment</FIELD>
    <FIELD id="fieldFinalSummary">finalsummary</FIELD>

    <FUNCTION id="fieldBalanceSumary" name="LT" arg1="fieldBalanceSumary" arg2="param0" attribute="class" replace="xx"/>
    <FUNCTION id="fieldFinalSummary" name="LT" arg1="fieldFinalSummary" arg2="param0" attribute="class" replace="xx"/>

    <SECTION id="sectionAccountSummary"/>
  </structure>

  <structure name="structureDetail">
    <FIELD id="fieldAccount">bankaccount</FIELD>
    <FIELD id="fieldAmountInitial">initialbalance</FIELD>
    <FIELD id="fieldAmountfinal">finalsummary</FIELD>
    <FIELD id="fieldSumAmount">incpay</FIELD>


    <SUBREPORT id="reportAccountDate" name="reportAcctDate" report="org/openbravo/erpCommon/ad_reports/ReportCashflowForecastDateAcct"/>
    <SUBREPORT id="reportAccount" name="reportAcct" report="org/openbravo/erpCommon/ad_reports/ReportCashflowForecastAcct"/>      


    <FUNCTION id="fieldAmountInitial" name="LT" arg1="fieldAmountInitial" arg2="param0" attribute="class" replace="xx"/>
    <FUNCTION id="fieldSumAmount" name="LT" arg1="fieldSumAmount" arg2="param0" attribute="class" replace="xx"/>
    <FUNCTION id="fieldAmountfinal" name="LT" arg1="fieldAmountfinal" arg2="param0" attribute="class" replace="xx"/>

    <SECTION id="sectionAccount"/>  
  </structure>

  <DISCARD id="discard"/>
</REPORT>   
